package com.sc.nft.vo.profittemplate;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.sc.nft.enums.ProfitTemplateRewardsEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author JYT
 * @create 2024/5/10 15:50
 */
@Data
public class profitTemplatePageVO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 分佣模板名称
     */
    @ApiModelProperty(value = "分佣模板名称")
    private String profitTemplateName;
    /**
     * 分佣比例
     */
    @ApiModelProperty(value = "分佣比例")
    private BigDecimal proportion;
    /**
     * 奖励积分
     */
    @ApiModelProperty(value = "奖励积分 PROFIT_AMOUNT 按照佣金金额换算 ,PAYMENT_AMOUNT 按照实付金额换算")
    private ProfitTemplateRewardsEnum bonusPoints;
    /**
     * 模版状态
     */
    @ApiModelProperty(value = "模版状态")
    private Boolean isOpen;

    /**
     * 关联商品数量
     */
    @ApiModelProperty(value = "关联商品数量")
    private Integer itemNum;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createName;
}
